package com.zrrd.homework._0325_0331.h6;

/**
 * @author WanJl
 * @version 1.0
 * @title H6Test
 * @description
 * @create 2024/3/31
 */
public class H6Test {
    public static void main(String[] args) {
        try{
            Mall mall = new Mall();
            Product product = mall.buy("花生1", 10);
            System.out.println(product);
        }catch (Exception e){
            System.out.println("商品不存在，或库存不足");
        }
    }
}
